<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.jsp.bean.RentcarBean" %>

<%@ page import="com.jsp.dao.ResultDao" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'result.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
 <style> 
  td  
   {  
    text-align:center;  
   }  
  </style>
  
  </head>
  
  <body background="images/picture_6.jpg">
   <div class="officialcar">
      <center><h1>欢迎进入公务用车管理系统</h1>
      <p>审核结果</p><br/>
     <table border="1" cellpadding="2" cellspacing="0">
      <tr>
         <td><b>申请号</b></td>
         <td><b>申请人</b></td>
         <td><b>申请时间</b></td>
         <td><b>归还时间</b></td>
         <td><b>原因</b></td>
         <td><b>申请车辆</b></td>
         <td><b>申请司机</b></td> 
         <td><b>审核意见</b></td>       
     </tr> 
    <%List<RentcarBean>result=(List<RentcarBean>)request.getAttribute("list");%>
    <%for(int i=0;i<result.size();i++){ %>
    <tr>
    <td class="officialcar"><b><%=result.get(i).getId() %></b></td>
    <td class="officialcar"><b><%=result.get(i).getApply_name() %></b></td>
    <td class="officialcar"><b><%=result.get(i).getOpenTime() %></b></td>
    <td class="officialcar"><b><%=result.get(i).getReturnTime() %></b></td>
    <td class="officialcar"><b><%=result.get(i).getReason() %></b></td>
    <td class="officialcar"><b><%=result.get(i).getApply_car() %></b></td>
    <td class="officialcar"><b><%=result.get(i).getApply_driver()%></b></td>
    <td class="officialcar"><b><%=result.get(i).getOpinion()%></b></td>
    </tr>
    <% }%>
    </table>
    </div> 
    <br>
    <br>
    <div>
        <center><a href="users/main.jsp"><input name="commit" type="submit" id="back" value="返回"></a>           
   </div>     
  </body>
</html>
